import { createBrowserRouter } from "react-router-dom";
import { lazy } from "react";


const Pages = {
  Index: lazy(() => import("./views/Index")),
  Login: lazy(() => import("./views/Login"))
};

export const routes = createBrowserRouter([
  {
    path: "/",
    element: <Pages.Index />,
  },
  {
    path: "/login",
    element: <Pages.Login />,
  },
]);